-- GENERATED SPELL FOR [Gordok Enforcer] --


function spell0_11440(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11440', 598, 1)
end

function spell1_11440(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11440', 677, 1)
end

function Sorts_11440(pUnit, Event)
local choix_sorts_11440 = math.random(0, 1)
if choix_sorts_11440 == 0 then
pUnit:RegisterEvent('spell0_11440', 1, 1)
end
if choix_sorts_11440 == 1 then
pUnit:RegisterEvent('spell1_11440', 1, 1)
end
end

function mob11440_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11440', math.random(1500, 3000), 1)
end

function mob11440_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11440_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11440_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11440, 1, 'mob11440_Action')
RegisterUnitEvent(11440, 2, 'mob11440_Leave')
RegisterUnitEvent(11440, 3, 'mob11440_Kill')
RegisterUnitEvent(11440, 4, 'mob11440_Die')
